import { ontents_item } from "./youku/contents/ontents_item"

const fs = require('fs');
const asyncHooks = require('async_hooks');
let c = 0;
let n = 0;
let l = 0;
const hook = asyncHooks.createHook({
    init(asyncId, type, triggerAsyncId, resource) {
        // fs.writeSync(1, `init: asyncId-${asyncId},type-${type},triggerAsyncId-${triggerAsyncId},资源 ${resource}\n`);
        fs.writeSync(1, `int ${c++},asyncId****************** ${asyncId}\n`)
    },
    // before(asyncId) {
    //   fs.writeSync(1, `before: asyncId-${asyncId}\n`);
    // },
    // after(asyncId) {
    //   // fs.writeSync(1, `after: asyncId-${asyncId}\n`);
    //   fs.writeSync(1, `after: ${n++}\n`);

    // },
    destroy(asyncId) {
        // fs.writeSync(1, `destroy: asyncId-${asyncId}\n`);
        fs.writeSync(1, `destroy: ${l++},asyncId********************${asyncId}\n`);
    }
});

// hook.enable();
import { c as quert } from './tool/core'
import { move_insert_all } from "./youku/movie/movie";
move_insert_all()
// quert('//list.youku.com/show/id_zcc0b1226962411de83b1.html', res => {
//     console.log(res)
// })
// tv_series(
//     {
//         uri: 'https://v.youku.com/v_show/id_XNDI3OTU3MjYxMg==.html',
//         dbs: "tv_series",
//     }

// // );

// console.log(process.uptime())
